package com.wlyuan.open.scanner.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wlyuan.open.scanner.domain.order.OrderAttach;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author yuanjie
 * @since 2022-10-13
 */
@Data
@TableName("TMS_ContractIndex")
@ApiModel(value = "ContractindexDO对象", description = "")
public class ContractIndexDO implements Serializable {


    private static final long serialVersionUID = -2599042874122404166L;
    @ApiModelProperty("合同主键ID")
    @TableId(value = "Index_ID", type = IdType.AUTO)
    private Long indexId;

    @ApiModelProperty("合同编码")
    private String indexCode;

    @ApiModelProperty("合同名称")
    private String indexName;

    @ApiModelProperty("合同内容")
    private String indexContent;

    @ApiModelProperty("甲方公司ID")
    private Long indexPartacompanyid;

    @ApiModelProperty("甲方公司名字")
    private String indexPartacompanyname;

    @ApiModelProperty("甲方地址")
    private String indexPartaaddr;

    @ApiModelProperty("甲方联系人")
    private String indexPartacontact;

    @ApiModelProperty("甲方电话")
    private String indexPartaphone;

    @ApiModelProperty("甲方签字时间")
    private LocalDateTime indexPartatime;

    @ApiModelProperty("甲方审核人")
    private Long indexPartaconfirmer;

    @ApiModelProperty("甲方审核时间")
    private LocalDateTime indexPartaconfirmtime;

    @ApiModelProperty("乙方公司ID")
    private Long indexPartbcompanyid;

    @ApiModelProperty("乙方公司名字")
    private String indexPartbcompanyname;

    @ApiModelProperty("乙方地址")
    private String indexPartbaddr;

    @ApiModelProperty("乙方联系人")
    private String indexPartbcontact;

    @ApiModelProperty("乙方电话")
    private String indexPartbphone;

    @ApiModelProperty("乙方签字时间")
    private LocalDateTime indexPartbtime;

    @ApiModelProperty("乙方审核人")
    private Long indexPartbconfirmer;

    @ApiModelProperty("乙方审核时间")
    private LocalDateTime indexPartbconfirmtime;

    @ApiModelProperty("合同开始时间")
    private LocalDateTime indexFromtime;

    @ApiModelProperty("合同结束时间")
    private LocalDateTime indexTotime;

    @ApiModelProperty("状态 0 草稿 1 待审核  2 已审核")
    private Long indexStatus;

    @ApiModelProperty("修改状态时间")
    private LocalDateTime indexStatustime;

    @ApiModelProperty("创建人")
    private Long indexCreator;

    @ApiModelProperty("创建公司")
    private Long indexCreatorcompanyid;

    @ApiModelProperty("创建时间")
    private LocalDateTime indexCreatetime;

    @ApiModelProperty("是否失效")
    private Integer indexInvalid;

    @ApiModelProperty("备注")
    private String indexComments;

    @ApiModelProperty("是否使用电子签章 0 否 1 是")
    private Integer indexEsignature;

    @ApiModelProperty("乙方类型 0 普通公司 1 个体司机")
    private Integer indexPartbtype;

    @ApiModelProperty("证书地址")
    private String indexContracturl;

    @ApiModelProperty("签署电子合同证据链")
    private String indexContractsigneurl;

    private String indexGuid;

    @TableField(exist = false)
    private String raw;
    @TableField(exist = false)
    @ApiModelProperty("合同附件")
    private List<OrderAttach> attachments;
}
